<template name="exploreUserCard">
  <div class="card-custom-col card-field">
    <div class="card card-shadow card-default">
      <div class="card-img-field px-3 pt-3 text-center">
        <img class="avatar" style="width:90px;height:90px;" src="{{user.profile.avatar}}">
      </div>
      <div class="card-body text-center">
        <h5 class="card-title">
          {{#if user.profile.name}}
            {{user.profile.name}}
          {{else}}
            {{getEmail}}
          {{/if}}
        </h5>
        <h6 class="card-subtitle mb-3 text-muted">{{user.username}}</h6>
        {{#unless isCurrent}}
          {{#unless isFriend}}
            <a href="#make-friend" class="btn btn-primary btn-block explore-user-make-friend">加好友</a>
          {{/unless}}
        {{/unless}}
      </div>
    </div>
  </div>
</template>